package com.wing.bill.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.bill.model.entity.BillOrdInformation;
import com.wing.bill.model.request.BillOrdInformationForm;
import com.wing.bill.model.response.BillOrdInformationVO;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 账单表账单汇总-Service
 *
 * @author
 */
public interface BillOrdInformationService extends IService<BillOrdInformation> {

    /**
     * 添加
     *
     * @param billOrdInformationForm
     * @return
     */
    int add(BillOrdInformationForm billOrdInformationForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<BillOrdInformationVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<BillOrdInformationVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    BillOrdInformationVO get4appById(Long id);

    int confirmBill(BillOrdInformationForm billOrdInformationForm);

    HashMap queryBillCensus(LocalDateTime last, LocalDateTime now, String type);

    HashMap queryBillCensusDetail(String billNo);

    HashMap find(String billNo);
}
